<include file="Public:header" />
<include file="Public:logo" />
<include file="Public:menu" />
<include file="Public:table_br" />
<load file="__ROOT__/images/js/datepick/jquery.datepick.css" />
<load file="__ROOT__/images/js/datepick/jquery.datepick.js" />
<load file="__ROOT__/images/js/datepick/jquery.datepick-zh-CN.js" />
<script>
$(function(){
    $('#tijiao').click(function(){
        var begin_time=$('#begin_time').val();
        var end_time=$('#end_time').val();
        if(begin_time=='' || end_time=='')
            {
                $('#pop').html('<font color="red">开始时间和结束时间不能为空！</font>');
            }
            else
                $('#search_jg').load("{:U('search/date_richeng')}",{"begin_time":begin_time,"end_time":end_time});
        });
});

$(function(){
    $('.user_search').click(function(){
        $('#search_jg').load("{:U('search/user_rc')}",{"id":this.id});
    });

    $(document).ready(function(){
            $('#begin_time').datepick({dateFormat: 'yy-mm-dd'});
            $('#end_time').datepick({dateFormat: 'yy-mm-dd'});
        });

});
</script>
<tbody><center>
<table width="780" border="1" cellpadding="0" cellspacing="0" align="center" style="border-collapse:collapse" bordercolor="#000000">
<tr>
<td width="100%">
按时间段检索：
<br>
<a id="pop"></a>
<br>
开始时间：<input type="text" id="begin_time" size="15" value="" maxlength='10' readonly />
结束时间：<input type="text" id="end_time" size="15" value="" maxlength='10' readonly />
时间格式：2009-01-01&nbsp;&nbsp;<input type="submit" value="检  索" name="B1" id="tijiao">
</td>
</tr>
</table>
<include file="Public:table_br" />

<table width="780" border="1" cellpadding="0" cellspacing="0" align="center" style="border-collapse:collapse" bordercolor="#000000">
<tr>
<td width="100%" >
按人员检索：
<foreach name="list" item="vo">
<a href="#" class="user_search" id="{$vo.user_id}">[{$vo.user_name}]</a>&nbsp;
</foreach>
<br><br>
</td>
</tr>
</table>
</center>
</tbody>
<tbody>
<div align="center" id="search_jg"></div>
</tbody>
<include file="Public:ender" />

